/**
 * 用户预约核心操作接口API
 */
import request from '@/utils/request'
// import qs from 'qs'

// 获取预约场馆列表
const getBookingVenuesList = () => {
  return request({
    url: '/addons/venues/api/venueslist',
    method: 'get'
  })
}

// 获取单个预约场馆详情
const getVenuesData = (query) => {
  return request({
    url: '/addons/venues/api/apply',
    method: 'get',
    params: query
  })
}

// 提交预约场馆详情单
const submitVenuesData = (data) => {
  return request({
    url: '/addons/venues/api/apply',
    method: 'post',
    data
  })
}

// 获取节假日
const getHoliday = () => {
  return request({
    url: '/addons/venues/api/getJieJiaRi',
    method: 'get'
  })
}

export default {
  getBookingVenuesList,
  getVenuesData,
  submitVenuesData,
  getHoliday
}
